package com.woniuxy.oa.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.woniuxy.oa.entity.Attendance;
import com.woniuxy.oa.entity.Overtime;

@Mapper
public interface OvertimeMapper {
	
	//添加
	Integer insertOvertimeInfo(Overtime overtime);
	//修改
	Integer updateOvertimeInfo(Overtime overtime);  
	//删除
	Integer deleteOvertimeInfoByOm_id(Integer om_id);
	/**
	 * 分页查询(根据姓名)
	 */
	//查询总条数
	Integer selectOvertimeInfoByTotalPageRecored(@Param("overtime") Overtime overtime);
	
	//根据条件查询分页信息
	List<Overtime> selectOvertimeInfoByNameAndPage(@Param("pageIndex") int pageIndex,
			@Param("pageSize") int pageSize,@Param("overtime") Overtime overtime);
	
		
}
